var express = require('express');
var router = express.Router();

router.get('/bar',async function(req,res){
    let data = {
        xAxisData:["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"],
        seriesData:[5, 20, 36, 10, 10, 20]
    }
    res.send(data);
});
router.get('/area',async function(req,res){
    let data = [
        {
            value: 5000000,
            name: "衬衫",
        },
        {
            value: 822312,
            name: "羊毛衫",
        },
        {
            value: 3442212,
            name: "雪纺衫",
        },
        {
            value: 5512332,
            name: "裤子",
        },
        {
            value: 5512133,
            name: "高跟鞋",
        },
        {
            value: 2332131,
            name: "袜子",
        },
    ]
    res.send(data);
});

module.exports = router;